<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			function Person(){
				
			}
			//为Person添加一个原型属性
			Person.prototype.name="ying";
			
			let p1=new Person();
			p1.age=12;
			console.log(p1.name)
			console.log(p1.age);
		</script>
	</head>
	<body>
	</body>
</html>
